package org.vshe.improve.spring.prospring3.ch5;

import java.util.Locale;

import org.springframework.context.support.GenericXmlApplicationContext;

public class MessageSourceDemo {
	public static void main(String args[]) {
		GenericXmlApplicationContext context = new GenericXmlApplicationContext("ch5/message-source-test.xml");
		context.registerShutdownHook();
		
		System.out.println("LOCALIZED MESSAGE :" + context.getMessage("nameMsg", new Object[] {}, Locale.ENGLISH));
	}
}
